﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace LView.CMS.ViewModels
{
    public class CourseAddOrModify
    {
        /// <summary>
        /// 所属任务ID
        /// </summary>
        public string TaskId { get; set; }

        /// <summary>
        /// 所属任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public string CategoryId { get; set; }
        /// <summary>
        /// 所属分类，例如（1.阶段1   2.阶段2）
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 分类描述
        /// </summary>
        public string CategoryDescription { get; set; }

        /// <summary>
        /// 教程名称
        /// </summary>
        public string CourseName { get; set; }

        /// <summary>
        /// 课程类型 （培训：0  考试：1）
        /// </summary>
        public string CourseType { get; set; }

        /// <summary>
        /// 教程描述
        /// </summary>
        public string CourseDescription { get; set; }

        /// <summary>
        /// 课程学时
        /// </summary>
        public int CoursePeriod { get; set; }

        /// <summary>
        /// 课程学分
        /// </summary>
        public int CourseScore { get; set; }

        /// <summary>
        /// 培训文件ID
        /// </summary>
        public string FileId { get; set; }

        /// <summary>
        /// 考试文件ID
        /// </summary>
        public string ExamId { get; set; }

        /// <summary>
        /// 上传操作-文件流
        /// </summary>
        public IFormFile FileData { get; set; }

        /// <summary>
        /// 上传操作-封面
        /// </summary>
        public IFormFile CoverImage { get; set; }

        /// <summary>
        /// 上传操作-文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 上传操作-文件Index
        /// </summary>
        public int FileIndex { get; set; }

        /// <summary>
        /// 上传操作-文件分片Total数量
        /// </summary>
        public int FileTotal { get; set; }

        /// <summary>
        /// 数据库操作-视频播放时长
        /// </summary>
        public decimal? PlaySize { get; set; }

        /// <summary>
        /// 数据库操作-类别Id
        /// </summary>
        public string TypeId { get; set; }

        /// <summary>
        /// 资源类型 video / image / other
        /// </summary>
        public string AssetsType { get; set; }

        /// <summary>
        /// 二级文件夹
        /// </summary>
        public string Directory { get; set; }
    }
}
